package com.hmall.common.client;


import com.hmall.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")
public interface UserClient {
    /**
     * 根据地址id查询收货地址
     * @param id 收货地址id
     * @return 收货地址
     */
    @GetMapping("/address/{id}")
    Address findAddressById(@PathVariable("id") Long id);
}
